#include <fstream>
using namespace std;
string txtread(char* dir){
    //读取公共库文件
   ifstream ifs(dir);
   if(!ifs.is_open()){
        return NULL;//读取公共库文件失败
   }
   ifs.seekg(0, ios_base::end);  //先把文件输入>
   int length = ifs.tellg();
   ifs.seekg(ios_base::beg);  //再将指针定位到[>
   char* buff = new char[length + 1](); //开辟[>
   ifs.read(buff, length + 1);  //将内容读取到b>
   string content(buff, length + 1); //再将buff>
   delete [] buff;
}

int main(){}
